# == Schema Information
# Schema version: 4
#
# Table name: agents
#
#  id         :integer(11)   not null, primary key
#  name       :string(255)   default(), not null
#  department :string(255)
#  phone      :string(255)   default(), not null
#  mobile     :string(255)
#  email      :string(255)
#  birthdate  :date
#

class Agent < ActiveRecord::Base

  validates_presence_of :name, :phone

  belongs_to :employee

end
